//
//  MPCircleView.h
//  tenMS
//
//  Created by plum on 17/6/29.
//  Copyright © 2017年 plum. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface MPCircleView : UIView
/** 圆CAShapeLayer */
@property(nonatomic,strong)CAShapeLayer * _Nullable ovalShapeLayer;

/** 背景颜色: defaluet:[UIColor lightGrayColor] */
@property (nonatomic, strong) UIColor * _Nullable backgroundStartColor;
/** 进度条的渐变开始颜色: defaluet:[UIColor redColor] */
@property (nonatomic, strong) UIColor * _Nullable progressStartColor;
/** 进度条的渐变结束颜色: defaluet:[UIColor greenColor] */
@property (nonatomic, strong) UIColor * _Nullable progressEndColor;

/** 起始角度：默认-MI_p */
@property (nonatomic, assign)CGFloat startAngle;
/** 结束角度:默认MI_p */
@property (nonatomic, assign)CGFloat endAngle;
/** 刻度线的宽度:默认10 */
@property (nonatomic, assign)CGFloat borderWidth;
/** 旋转方向:默认NO */
@property (nonatomic, assign)BOOL clockwise;

/** 旋转方向:默认@[@2,@6] */
@property(nullable, copy) NSArray<NSNumber *> *lineDashPattern;
// 当前进度
@property (nonatomic, assign,readonly)CGFloat progress;

- (void)updateProgress:(CGFloat)startProgress endProgress:(CGFloat)endProgress showAnimation:(BOOL)showAnimation;

@end
